<?php
$this->beginWidget('Block', array(
	'title' => CONSTANT::NAME_VIEW,
));
$this->widget('DetailView', $detailView);
$this->endWidget();
?>

<?php if(!empty($model->travelers)) {
	$this->beginWidget('Block', array(
		'title' => $model->getAttributeLabel('travelers'),
	));
	$columns = array(
	 		array(
	 			'name' => '姓名',
	 			'value' => '$data->name',
	 		),
//	 		array(
//	 			'name' => '手机',
//	 			'value' => '$data->mobile',
//	 		),
	 		array(
	 			'name' => '身份证',
	 			'value' => '$data->idcard',
	 		),
		);
	if ($model->getAttribute('object_type') == 'OrderHotel') array_pop($columns);
	 $this->widget('GridView', array(
		'dataProvider' => new CArrayDataProvider($model->travelers),
		'columns' => $columns
	));
	$this->endWidget();
}?>

<div align=right>
	<?php echo CHtml::resetButton(CONSTANT::OP_RETURN, array(
		'class' => 'pn',
		'style' => 'width:80px',
		'onclick' => 'location.href="'.Yii::app()->request->urlReferrer.'"'
	))?>
</div>